using System;
using System.Text.RegularExpressions;

namespace System72.NTextile.RegexLibrary
{
    public class ImageRegex:BaseRegex
    {
        public ImageRegex()
        {
            string pattern = String.Format(@"{0}{1}([^\n\s]+)?(\((?>[^()]+|\((?<number>)|\)(?<-number>))*(?(number)(?!))\)){1}{2}", @"(?<=\s|^)", "!", @"(?=\s|$)"); ;
            m_regex = new Regex(pattern);
        }
    }
}
